package com.love.marriage.commissionInfo.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.love.marriage.common.vo.BaseVo;
import com.love.marriage.config.Long2StringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * description:  佣金表Vo
 * author:       mybatisPlus
 * createDate:   2024-10-28 19:07:46
 * version:      1.0.0
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(name = "CommissionInfoVo", description = "佣金表Vo")
public class CommissionInfoVo extends BaseVo<CommissionInfoVo>{

    @JsonSerialize(using = Long2StringSerializer.class)
    @Schema(description = "用户ID，关联到用户表", type = "Long", implementation = Long.class)
    private Long userId;

    @Schema(description = "编码", type = "String", implementation = String.class)
    private String code;

    @Schema(description = "昵称", type = "String", implementation = String.class)
    private String nickname;

    @Schema(description = "介绍人编码", type = "String", implementation = String.class)
    private String refererCode;

    @Schema(description = "介绍人昵称", type = "String", implementation = String.class)
    private String refererNickname;

    @JsonSerialize(using = Long2StringSerializer.class)
    @Schema(description = "推荐人ID，关联到用户表", type = "Long", implementation = Long.class)
    private Long referrerId;

    @Schema(description = "佣金金额", type = "BigDecimal", implementation = BigDecimal.class)
    private BigDecimal amount;

    @Schema(description = "佣金状态，0: 待支付, 1: 已支付, 2: 取消", type = "Integer", implementation = Integer.class)
    private Integer status;

    @JsonSerialize(using = Long2StringSerializer.class)
    @Schema(description = "订单id", type = "Long", implementation = Long.class)
    private Long orderId;

    @Schema(description = "佣金来源：'partner':合伙人，'one_level_recharge_amount'：一级消费现金，'two_level_recharge_amount'：二级消费现金", type = "String", implementation = String.class)
    private String commissionType;

    @Schema(description = "订单号", type = "String", implementation = String.class)
    private String orderNumber;

    @Schema(description = "订单总金额", type = "BigDecimal", implementation = BigDecimal.class)
    private BigDecimal totalAmount;
}
